package darknet.core.spec.net;

import java.io.Serializable;

/**
 * @author yoyo
 *
 */
public interface Message extends Serializable {

    /**
     * The message header.
     * @return
     */
    MessageHeader getHeader();
    
    /**
     * The node who write the message.
     * @return
     */
    Node getFrom();
    
    /**
     * The destination node.
     * @return
     */
    Node getTo();
}
